FROM alpine:3.21

# Define the project name | 定义项目名称
ARG PROJECT=audio-server
# Define the config file name | 定义配置文件名
ARG CONFIG_FILE=user-api.yaml
# Define the author | 定义作者
ARG AUTHOR="bys.com"
WORKDIR /app
COPY . .



LABEL org.opencontainers.image.authors=${AUTHOR}

WORKDIR /app
ENV PROJECT=${PROJECT}
ENV CONFIG_FILE=${CONFIG_FILE}

ENV TZ=Asia/Shanghai
RUN apk update --no-cache && apk add --no-cache tzdata
RUN mkdir -p ./etc
COPY ./audio-server .

EXPOSE 8888

RUN chmod +x ./audio-server

ENTRYPOINT ["./audio-server", "-f", "user-api.yaml"]